package org.example.service.impl;

//import org.example.dao.GiveInstructionDao;
import org.example.dto.GiveInstructionDto;
import org.example.service.GiveInstructionService;
import org.example.vo.GiveInstructionVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class GiveInstructionServiceImpl implements GiveInstructionService {

//    @Resource
//    private GiveInstructionDao dao;


    @Override
    public Integer addGiveInstruction(GiveInstructionVo giveInstruction) {

        return 1;
    }

    @Override
    public Integer deleteGiveInstruction(Integer curriculumId) {
        return 1;
    }

    @Override
    public Integer updateGiveInstruction(GiveInstructionVo giveInstruction) {
        return 1;
    }

    @Override
    public List<GiveInstructionDto> queryGiveInstructionByTeacher(String teacherName) {
        List<GiveInstructionDto> giveInstructionDtoList=new ArrayList<>();
        GiveInstructionDto giveInstructionDto=new GiveInstructionDto();
        giveInstructionDto.setCurriculumId(0);
        giveInstructionDto.setCurriculumName("英语");
        giveInstructionDto.setTeacherName("吴荣昌");
        giveInstructionDtoList.add(0,giveInstructionDto);
        return giveInstructionDtoList;
    }

    @Override
    public GiveInstructionDto queryGiveInstructionByCurriculumId(Integer curriculumId) {
        GiveInstructionDto giveInstructionDto=new GiveInstructionDto();
        giveInstructionDto.setCurriculumId(0);
        giveInstructionDto.setCurriculumName("英语");
        giveInstructionDto.setTeacherName("吴荣昌");
        return giveInstructionDto;
    }

    @Override
    public Integer countGiveInstruction() {
        return 1;
    }

    @Override
    public Integer countGiveInstructionByTeacherName(String teacherName) {
        return 1;
    }

    @Override
    public List<GiveInstructionDto> queryAllGiveInstruction() {
        List<GiveInstructionDto> giveInstructionDtoList=new ArrayList<>();
        GiveInstructionDto giveInstructionDto=new GiveInstructionDto();
        giveInstructionDto.setCurriculumId(0);
        giveInstructionDto.setCurriculumName("英语");
        giveInstructionDto.setTeacherName("吴荣昌");
        giveInstructionDtoList.add(0,giveInstructionDto);
        return giveInstructionDtoList;
    }

    @Override
    public Integer countCurriculum() {
        return 1;
    }
}
